<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div id="namePanel" class="form-group">
        <div class="form-group">
            <label for="name" class="control-label col-xs-12 col-sm-2">商品分类名称</label>
            <div class="col-xs-12 col-sm-8">
                <input class="form-control" id="name" type="text" name="row[name]" value="{$row['name']}" data-rule="required" placeholder="商品分类名称" autocomplete="off" maxlength="100">
                <div class="help-block"></div>
            </div>
        </div>
        <div class="form-group">
            <label for="name" class="control-label col-xs-12 col-sm-2">商品分类类型</label>
            <div class="col-xs-12 col-sm-8">
                {$typeSelect}
            </div>
        </div>
        <div class="form-group">
            <label for="c-photo" class="control-label col-xs-12 col-sm-2">分类图片:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-photo" data-rule="" class="form-control" size="50" name="row[photo]" type="text" value="{$row.photo|htmlentities}">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-photo" class="btn btn-danger faupload" data-input-id="c-photo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-photo"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-photo" class="btn btn-primary fachoose" data-input-id="c-photo" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-photo"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-photo"></ul>
            </div>
        </div>
        <div class="form-group">
            <label for="odr" class="control-label col-xs-12 col-sm-2">排序</label>
            <div class="col-xs-12 col-sm-8">
                <input class="form-control" id="odr" type="number" name="row[odr]" value="{$row['odr']}" data-rule="required;integer" placeholder="排序" autocomplete="off" maxlength="100">
                <div class="help-block"></div>
            </div>
        </div>
    </div>
    <div id="buttonPanel" class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
